package com.erp.mapper;

import com.erp.pojo.Shoplist;
import com.erp.pojo.ShoplistExample;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Mapper
@Repository
public interface ShoplistMapper {
    long countByExample(ShoplistExample example);

    int deleteByExample(ShoplistExample example);

    int deleteByPrimaryKey(Integer shopId);

    int insert(Shoplist record);

    int insertSelective(Shoplist record);

    List<Shoplist> selectByExample(ShoplistExample example);

    Shoplist selectByPrimaryKey(Integer shopId);

    int updateByExampleSelective(@Param("record") Shoplist record, @Param("example") ShoplistExample example);

    int updateByExample(@Param("record") Shoplist record, @Param("example") ShoplistExample example);

    int updateByPrimaryKeySelective(Shoplist record);

    int updateByPrimaryKey(Shoplist record);

    int insertShopList(@Param("shopList") List<Shoplist>shopList);

    List<Shoplist>conditionDate(String date);

    int countShopList(@Param("map")Map<String, Object> map);

    List<Shoplist> findAllShopList(@Param("map")Map<String, Object> map);

    int updateShopState(@Param("state") Integer state,@Param("id") Integer id);

    int updateShopStateByIds(@Param("state") Integer state,@Param("ids") List<Integer>ids);

    List<Shoplist>findShopBuIDs(@Param("ids") List<Integer>ids);
}